package com.example.demo.model;

import com.example.demo.service.UserService;
import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2022-10-08
 * Time: 9:55
 */

@Data
//文章实体类
public class ArticleInfo {
    private int id;
    private String title;
    private String content;
    private String createtime;
    private String updatetime;
    private int uid;
    private int rcount;
    private int state;
    //一篇文章对应一个作者 就可以把这个实体类 放到文章表里
    //数据库中ArticleInfo是没有的UserInfo的
    private UserInfo userInfo;
}
